package com.dang.service.imp;

import java.util.List;

import com.dang.dao.imp.DAOFactory;
import com.dang.model.Category;
import com.dang.service.CategoryService;

public class CategoryServiceImp implements CategoryService {
	
	@Override
	public List<Category> findAll() throws Exception{
		return DAOFactory.getCategoryDAO().findAll();
	}
//	@Override
//	public List<Category> findByParentId(int pid) throws Exception{
//		return DAOFactory.getCategoryDAO().findByParentId(pid);
//	}
}
